
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>screen</title>
</head>
<body>
<script>
    console.log("页面宽："+screen.availWidth);
    console.log("页面高："+screen.availHeight);

    console.log("pageWidth:"+window.innerWidth);
    console.log("pageHeight:"+window.innerHeight);
</script>
</body>
</html>